AnnieRoot.index=AnnieRoot.index||{};
index.CarItem = function () {
    var s = this;
    annie.Sprite.call(s);
    s.mouseChildren = false;
};
A2xExtend(index.CarItem, annie.Sprite);
index.CarItem.displayList = [];
index.CarItem.prototype.initData = function (id, data) {
    var s = this;
    if (data) {
        s.removeAllChildren();
        var newId=data.id;
        if (!index.CarItem.displayList[newId]) {
            index.CarItem.displayList[newId] = new index["CarItem" + newId]();
        }
        var child=index.CarItem.displayList[newId];
        child.x=80;
        child.y=90;
        s.addChild(child);
        s.id=id;
    }
};
index.CheckCars = function () {
    var s = this;
    annie.Sprite.call(s);
    /*_a2x_need_start*/s.left_btn=null;s.right_btn=null;/*_a2x_need_end*/
    annie.initRes(s,"index","CheckCars");
    var sp = new annieUI.ScrollList(index.CarItem, 160, 120, 480, 120, false);
    sp.x=35;
    sp.y=15;
    sp.updateData([{id:0}, {id:1},{id:2},{id:3},{id:4},{id:5},{id:6},{id:7},{id:8},{id:9}]);
    s.addChild(sp);
    s.addEventListener(annie.MouseEvent.CLICK,function (e) {
        if(e.target.id!=undefined){
            s.parent.gotoAndPlay("back",false);
            index.MakeMc.carId=e.target.id;
        }
    });
    s.left_btn.mouseEnable=false;
    s.right_btn.mouseEnable=false;
};
A2xExtend(index.CheckCars, annie.Sprite);
